package com.itheima.controller;

import com.itheima.manager.CmsPrefrenceAreaManager;
import com.itheima.util.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/prefrenceArea")
public class CmsPrefrenceAreaController {
    @Autowired
    CmsPrefrenceAreaManager cmsPrefrenceAreaManager;


    //获取所有商品优选
    @GetMapping("/listAll")
    public R findAllProductNice(){
       return R.success( cmsPrefrenceAreaManager.findAllProductNice());
    }



}
